package se.rkrantz.simpleraid.hibernate.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import se.rkrantz.simpleraid.hibernate.dao.SignupDao;
import se.rkrantz.simpleraid.hibernate.domain.Signup;

public class SignupDaoImpl extends HibernateDaoSupport implements SignupDao {

	@Override
	public void save(Signup signup) {
		getHibernateTemplate().save(signup);
	}

	@Override
	public void update(Signup signup) {
		getHibernateTemplate().update(signup);
	}

	@Override
	public void delete(Signup signup) {
		getHibernateTemplate().delete(signup);
	}

	@Override
	public Signup findSignupById(long signupId) {
		return (Signup) getHibernateTemplate().get(Signup.class, signupId);
	}

}
